Amazon SES SMTP Sample
This is a sample that demonstrates how to send an email using SES with SMTP protocol.
Prerequisites
- You must have a valid Amazon Web Services developer account.
- Requires the AWS SDK for .NET and the AWS SDK for .NET Extensions. For more information on the AWS SDK for .NET, see http://aws.amazon.com/sdkfornet.
- You must be signed up to use Amazon SES. For more information on Amazon SES, see http://aws.amazon.com/ses/.
- You will need AWS SES SMTP credentials to send emails using SMTP. The AWS SES SMTP credentials are different from AWS access key ID and secret access key. You can create the SMTP credentials from https://console.aws.amazon.com/ses/home#smtp-settings:/ .
Running the Sample
The basic steps for running the Amazon SES SMTP sample are:
- Open the
AmazonSesSmtpSample.sln file in Visual Studio.
- Open the
App.config file.
- Enter your AWS SES SMTP User Name and Password:
<add key="AwsSesSmtpUserName" value="<Your AWS SES SMTP User Name>"/>
<add key="AwsSesSmtpPassword" value="<Your AWS SES SMTP Password>"/>
- Save the file.
- Set proper values for the variables
senderAddress and receiverAddress.
- Run the sample in Debug mode by typing F5.